package Test;

import java.util.Scanner;

public class ObjectDemo {
    public static void main(String[] args) {
        //int a=5;
        //Integer b = Integer.valueOf(a);
        Integer a = 10;
        int i = a;

        String str = "10";
        int num = Integer.valueOf(str);

        System.out.println();//.parseInt(str);


    }


}
class Student{
    String name;//姓名
    int age;
    public Student(){
        System.out.println("无参构造");
    }
    public Student(String name,int age){
        this.name = name;
        this.age = age;
    }

    public String toString(){
        return "Student{" +
                "name=" + name +
                ",age=" + age +
                "}";
    }
}